Skip to content

Allow creation of COSI files with --tools-dir.#827

Open
cwize1 wants to merge 2 commits into
mainfrom
user/chrisgun/aclCosi2
Open

Allow creation of COSI files with --tools-dir.#827
cwize1 wants to merge 2 commits into
mainfrom
user/chrisgun/aclCosi2

Conversation

@cwize1

@cwize1 cwize1 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Allow for COSI files to be created when the target OS doesn't contain package management commands by using --tools-dir. This change covers the customize, convert, and inject-files commands.


Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • Code conforms to style guidelines

Allow for COSI files to be created when the target OS doesn't contain
package management commands by using `--tools-dir`. This change covers
the `customize`, `convert`, and `inject-files` commands.
@cwize1 cwize1 requested a review from a team as a code owner July 6, 2026 19:38
Comment thread toolkit/tools/pkg/imagecustomizerlib/imagecustomizer.go Outdated
Comment thread toolkit/tools/pkg/imagecustomizerlib/convertimage_test.go
Comment thread toolkit/tools/pkg/imagecustomizerlib/imagecustomizer.go Outdated
if err != nil {
// RPM command is not found.
return nil, nil
// (If toolsChroot is being used, then assume that the rpm command is available.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to document this requirement/gotcha for users in docs/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is a hack for the ACL image. I don't think it's worth documenting at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants